/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

.playgroundContainer {
  margin-bottom: var(--ifm-leading);
  /* border-radius: var(--ifm-global-radius); */
  /* box-shadow: var(--ifm-global-shadow-lw); */
  overflow: hidden;
}

.playgroundHeader {
  letter-spacing: 0.08rem;
  padding: 0.35rem 0.6rem;
  text-transform: uppercase;
  font-weight: bold;
  background: var(--ifm-color-emphasis-200);
  color: var(--ifm-color-content);
  font-size: var(--ifm-code-font-size);
}

.playgroundHeader:first-of-type {
  background: var(--ifm-color-emphasis-600);
  color: var(--ifm-color-content-inverse);
}

.playgroundEditor {
  font: var(--ifm-code-font-size) / var(--ifm-pre-line-height)
    var(--ifm-font-family-monospace) !important;
  /* rtl:ignore */
  direction: ltr;
}

.playgroundPreview {
  padding: 1.5rem;
  border-radius: var(--ifm-global-radius);
  /* background-color: var(--ifm-pre-background); */
  /* background-color: red; */
  position: relative;
  border: 1px solid var(--ifm-color-emphasis-200);
  display: flex;
  justify-content: center;
  align-items: center;
}

.toggleContainer {
  position: absolute;
  bottom: 2px;
  right: 4px;
  display: flex;
  gap: 4px;
}

.toggleIcon {
  color: var(--ifm-pre-color-gray-200);
  display: flex;
  align-items: center;
  background-color: var(--ifm-color-emphasis-200);
  padding: 2px 6px;
  border-radius: 6px;
  cursor: pointer;
}

.toggleIcon .showCode {
  margin-left: 2px;
  font-size: x-small;
}
